home *** CD-ROM | disk | FTP | other *** search
- ICONTOOLS Documentation
-
- by Enrique Gamez
-
- This file was written to supplement the sketchy instructions which
- usually accompany public domain software. I use a reference card format
- below for clarity.
-
-
- IconTool: ALTICON (AKA SetALternate)
-
- Usage (from CLI): SetAlternate Icon1 Icon2
-
- Purpose: This tool merges the graphic information of Icon2 into Icon1.
- The resulting icon will appear just as it did before UNTIL you click on
- it (select it with the mouse.) At that point, the image will change to
- that contained in icon2. The neat thing about this is that you can
- create pseudo 2-step animation if the two images differ only slightly.
- Of course, they could differ entirely if you wish.
-
- Note: The original Icon1 image once merged with SetAlternate can no
- longer be accessed by the Icon Editor. So, save a copy under a
- different name if you're going to experiment a bit.
- ---------------------------------------------------------------------
-
- IconTool: Brush2Icon
-
- Alias (also seen as): Zapicon
-
- Usage (from CLI): Brush2Icon BrushName IconName
-
- Purpose: This tool converts an image from Deluxe Paint saved as a
- brush (or an image from Aegis Images saved as a window) to a work-
- bench icon definition. It will even add the ".info" suffix to the
- filename you specify. I gave you the file with the original title
- Zapicon, but it may be worth renaming it to its alias as seen above.
- Brush2Icon is a much more descriptive title which will help you re-
- member its function.
- There are some restrictions you'll encounter with using a graphic
- package to create your icons. At first it will seem as if you now
- can do anything...but... 1) You can only use the first four colors
- in the palette; 2) Your resulting icon's demensions may be distorted
- depending on whether you normally use a 640 pixel workbench screen or
- the 320 pixel/60 char screen. See the chart below:
-
- DPaint Height Width
- -----------------------------
- lo-res | 1x .5x
- med-res | 1x 1x
- hi-res | 2x 1x
-
- Assuming a 640x200, 80 char workbench screen the above table compares
- the relative dimensions of a saved brush to that of the icon it will
- become. As you can see, in medium resolution there is a 1 to 1 cor-
- respondence, i.e. WYSIWYG (What You See Is What You Get). If a brush
- is saved from the hi-res mode of DPaint it will turn out twice as tall.
- It is possible to load your newly created icons into IconEd and play
- with them some more. However, I occassionally found some garbage in
- the picture which I simply cleaned up, one pixel at a time.
- ----------------------------------------------------------------------
-
- IconTool: Xicon
-
- Alias (also seen as): it can appear as anything!
-
- Usage: Use as a tool invoked by an attached icon (see below).
-
- Purpose: This utility is the missing link we workbench users have
- been waiting for. It allows us to execute CLI commands from the work-
- bench. Our tool icons should eventually be able to do this. In the
- meantime, John Toebes the author, has provided a clever work-around.
-
- Tutorial: First, duplicate any tool icon like IconEd or the Clock.
- We're going to attach it to IconExe. Let's say for example that our
- program will be called "DIRECTORY". We are going to attempt a "DIR"
- command from a workbench icon. If everything is in your root direc-
- tory, type
-
- 1> RENAME Xicon.info DIRECTORY.info
- 1> RENAME Xicon DIRECTORY
-
- you have now attached an icon to a tool. Now, go to the workbench and
- double-click the disk icon to reveal the copied icon. You could and
- should, of course, create an original icon for this new utility so as
- not to confuse its intended function. You may now select your icon
- (single click) and go to the pull down workbench menu and choose INFO.
- This is the configuration menu which allows us to add the commands we
- wish executed. IconExe comes with its TOOL TYPES array empty, however
- you can certainly edit an old copy of Xicon with the ADD and DEL
- gadget buttons to take on a different job. Since ours is empty, click
- on the ADD box once then click again within the rectangular area just
- to its left. At the cursor, type
-
- DIR
-
- and press return. Now save this array of 1 element back to your disk
- by clicking on the SAVE button on the lower left of the INFO screen.
- If your disk has a "DIR" command in the "c" directory, double-clicking
- on the DIRECTORY icon should work.
- Unfortunately, you may notice that the directory although it works
- fine, goes away as soon as it is through without giving you time to
- read it. Let's add an element to the TOOL TYPES array.
- Go back to the INFO screen and click on the ADD button (the list
- of elements scrolls, revealing the next space) then just left of it
- as before. This time, type
-
- WAIT 5
-
- and press return. This should give you 5 seconds to view the direc-
- tory before it disappears. More importantly, it gives you time to
- press the right, menu button so you can further freeze the display
- as long as you wish.
- Read the description of the SetWindow icon tool to further custo-
- mize the IconExec utility.
-
- NOTES: The commands you may execute are looked for in the "c" and
- root directories. The "CD" or current directory doesn't seem to make
- any difference. If you want to run a command residing in a different
- directory or disk you must include the path within the TOOL TYPES
- requester, thus
-
- UTILITIES/CALCULATOR
-
- is needed if you wanted to run the calculator. Use a specific disk
- name like the one I used for our PD disk,
-
- SFVAUG.86.08:___________ etc.
-
- so it can work from any drive. Optionally, you may just use,
-
- DF1:_____________ etc.
-
- That's all for now...
- ---------------------------------------------------------------------
-
-
- Bye for now, ... Enrique Gamez, SFVAUG.86.08
-
- This file originally appeared in the August 1986 Public Domain Disk as
- distributed to the members of our Amiga Club:
-
- San Fernando Valley Amiga User's Group
- (818) 344-2055
-
-
-
-